Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bypass rendering of missing glyphs #151

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Bypass rendering of missing glyphs #151

wants to merge 3 commits into from

Conversation

oori
Copy link

@oori oori commented Oct 21, 2010

much needed in multilanguage sites

oori and others added 3 commits August 11, 2010 17:01
1. on font initialization - creates font.missingGlyphs = string of all the available characters in the loaded font file
2. sanitize (to be valid regexp) and build font.missingGlyphsRegexp
3. on render process: if "part" (as defined in cufon call) has a missing char - then don't render it and pass it on normally.


This allows both non-rendered and renders fonts to be (unilke the original cufon which replaces non existing glyphs with $missingGlyph  (default blank))
@bfintal
Copy link

bfintal commented Dec 27, 2012

Think this should really be included in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants